import request from '@/utils/request'

// 查询出租房源列表
export function listRental_house(query) {
  return request({
    url: '/business/rental_house/list',
    method: 'get',
    params: query
  })
}

// 查询出租房源详细
export function getRental_house(rentalHouseId) {
  return request({
    url: '/business/rental_house/' + rentalHouseId,
    method: 'get'
  })
}

// 新增出租房源
export function addRental_house(data) {
  return request({
    url: '/business/rental_house',
    method: 'post',
    data: data
  })
}

// 修改出租房源
export function updateRental_house(data) {
  return request({
    url: '/business/rental_house',
    method: 'put',
    data: data
  })
}

// 删除出租房源
export function delRental_house(rentalHouseId) {
  return request({
    url: '/business/rental_house/' + rentalHouseId,
    method: 'delete'
  })
}

// 导出出租房源
export function exportRental_house(query) {
  return request({
    url: '/business/rental_house/export',
    method: 'get',
    params: query
  })
}